#include <QCoreApplication>
#include <iostream>
using namespace std;
int main(int argc, char * argv[])
{
  int A, B, C;
  cin >> A >> B >> C;
  cout << ((A > 0) || (B > 0) || (C > 0));
  return 0;
}
